home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 9 code / TermWindow / MakeFile < prev    next >
Encoding:
Makefile  |  1992-01-06  |  4.2 KB  |  164 lines  |  [TEXT/MPS ]

  1. ###############################################################################
  2. ##
  3. ##  Project Name:    SampleTermWindow
  4. ##     File Name:    MakeFile
  5. ##
  6. ##   Description:    This file will build our application under MPW 3.2
  7. ##
  8. ##                       Copyright © 1988-1991 Apple Computer, Inc.
  9. ##                       All rights reserved.
  10. ##
  11. ###############################################################################
  12. ##                       A U T H O R   I D E N T I T Y
  13. ###############################################################################
  14. ##
  15. ##    Initials    Name
  16. ##    --------    -----------------------------------------------
  17. ##    CSH            Craig Hotchkiss
  18. ##
  19. ###############################################################################
  20. ##                      R E V I S I O N   H I S T O R Y
  21. ###############################################################################
  22. ##
  23. ##    Change History (most recent first):
  24. ##
  25. ###############################################################################
  26.  
  27.  
  28.  
  29. OBJECTFOLDER =                     ":Objects:"
  30. SYMBOLOPTION =                     full
  31. DUMPFILE     =                     Load.Dump
  32.  
  33.  
  34.  
  35. #---------------------------------------------------------------------------
  36. #    start standard preamble
  37. #    compiler options
  38.  
  39. COPTIONS                     =                                                 ∂
  40.                                 #-p                                         ∂
  41.                                 -b3                                            ∂
  42.                                 -d DUMPFILENAME=∂"Load.Dump∂"                ∂
  43.                                 -sym {SYMBOLOPTION}                         ∂
  44.                                 -mbg full                                     ∂
  45.                                 -i "{CIncludes}"                             ∂
  46.                                 -i ":"                                         ∂
  47.                                 -k {OBJECTFOLDER}
  48.  
  49. POPTIONS                     =                                                 ∂
  50.                                 -d Debug=TRUE                                 ∂
  51.                                 -sym {SYMBOLOPTION}                         ∂
  52.                                 -mbg full                                     ∂
  53.                                 -u                                             ∂
  54.                                 -sym off                                     ∂
  55.                                 -i "{PInterfaces}"
  56.  
  57. AOPTIONS                     =                                                 ∂
  58.                                 -i "{AIncludes}"
  59.  
  60. LINKOPTIONS                 =                                                 ∂
  61.                                 #-p                                            ∂
  62.                                 -w                                             ∂
  63.                                 -mf
  64. LINKTIMESTAMP                =                                                ∂
  65.                                 "        `date -s` -- linking shit"
  66.  
  67. LIBOPTIONS                     =                                                 ∂
  68.                                 -sym {SYMBOLOPTION}
  69.         
  70. REZOPTIONS                     =                                                 ∂
  71.                                 -append
  72.         
  73. #    end standard preamble
  74. #---------------------------------------------------------------------------
  75.  
  76.  
  77.  
  78. MACLIBRARIES = ∂
  79.         #"{Libraries}"Stubs.o ∂
  80.         "{Libraries}"Interface.o ∂
  81.         "{Libraries}"Runtime.o ∂
  82.         "{CLibraries}"StdClib.o ∂
  83.         #"{CLibraries}"Complex.o ∂
  84.         #"{CLibraries}"CSANELib.o ∂
  85.         #"{CLibraries}"Math.o ∂
  86.         #"{Libraries}"ToolLibs.o ∂
  87.         #"{PLibraries}SANELib.o" ∂
  88.         #"{PLibraries}"PasLib.o
  89.                     
  90.  
  91.  
  92.  
  93.  
  94. ###############################################################################
  95. #                    SampleTermWindow program defined here.
  96. ###############################################################################
  97. #
  98. AppName =                SampleTermWindow
  99. AppType =                 'APPL'
  100. AppCrtr =                'MOOS'
  101. AppObjects = ∂
  102.                     {OBJECTFOLDER}Load.c.o ∂
  103.                     {OBJECTFOLDER}{AppName}.c.o ∂
  104.                     {OBJECTFOLDER}TermWindow.c.o
  105. #
  106. #
  107. {AppName}        ƒƒ        MakeFile {AppName}.r {AppName}.h
  108.     Rez {REZOPTIONS} {AppName}.r -o {AppName}
  109. #
  110. {OBJECTFOLDER}    ƒ    ":"
  111. #
  112. {AppName}        ƒƒ        MakeFile {AppObjects}
  113.     Link {LINKOPTIONS} ∂
  114.         #-p ∂
  115.         -sym {SYMBOLOPTION} ∂
  116.         -t {AppType} -c {AppCrtr} ∂
  117.         {AppObjects} ∂
  118.         {MACLIBRARIES} ∂
  119.         -o {AppName} && ∂
  120.     SetFile {AppName} -a Bi
  121. #
  122.  
  123. ###############################################################################
  124. #                                    Cleanup
  125. ###############################################################################
  126. #
  127. Clean                            ƒ        "{Worksheet}"
  128.         Set Echo 0 && ∂
  129.         Set saveExit {Exit} && ∂
  130.         Set exit 0 && ∂
  131.         If `Exists {AppName}.SYM`
  132.             Delete {AppName}.SYM -y
  133.         End
  134.         If `Exists {AppName}`
  135.             Delete {AppName} -y
  136.         End
  137.         Delete `files {OBJECTFOLDER}≈` -y ∑∑ Dev:Null && ∂
  138.         Set exit {saveExit} && ∂
  139.         Set Echo 1
  140.  
  141. ###############################################################################
  142. #                                    Load.Dump
  143. ###############################################################################
  144. #
  145. {OBJECTFOLDER}Load.Dump            ƒ        Load.c
  146.  
  147. ###############################################################################
  148. #                                Default rules
  149. ###############################################################################
  150. #
  151. {OBJECTFOLDER}    ƒ    ":"
  152. #
  153. .c.o        ƒ    .c 
  154.     #Echo    "    `date -s` -- Compiling {Default}.c"
  155.     C         {DepDir}{Default}.c {COPTIONS} -o {Targ}
  156.     
  157. .p.o        ƒ    .p
  158.     #Echo    "    `date -s` -- Compiling {Default}.p"
  159.     Pascal    {DepDir}{Default}.p {POPTIONS} -o {Targ}
  160.  
  161. .a.o        ƒ    .a
  162.     #Echo    "    `date -s ` -- Compiling {Default}.a"
  163.     Asm         {DepDir}{Default}.a {AOPTIONS} -o {Targ}
  164.